/*
 * Basic Node Class
 * 
 */

package paws.gui;

import java.awt.*;

/**
 *
 * @author Greg
 */
public class Node {
    private Point location ;
    public enum Type{Start, Intermediary, End} ;
    private Type type ;

    //future variables
    private int initPower, currentPower, thresholdPower, depletedPower  ;


    //constructors
    public Node()
    {
        location = new Point(0,0) ;

        //variable for future additions
        initPower = 100 ;
        currentPower = 100 ;
        thresholdPower = 10 ;
        depletedPower = 0 ;
    }

    public Node(Point newLocation)
    {
        location = newLocation ;

         //variable for future additions
        initPower = 100 ;
        currentPower = 100 ;
        thresholdPower = 10 ;
        depletedPower = 0 ;
    }

    public Node(Point newLocation, Type newType)
    {
        location = newLocation ;
        type = newType ;

         //variable for future additions
        initPower = 100 ;
        currentPower = 100 ;
        thresholdPower = 10 ;
        depletedPower = 0 ;
    }

    public Node(int x, int y)
    {
        location.x = x ;
        location.y = y ;

         //variable for future additions
        initPower = 100 ;
        currentPower = 100 ;
        thresholdPower = 10 ;
        depletedPower = 0 ;
    }

    //method
    //get methods
    public Node.Type getType()
    {
        return type ;
    }

    public int getX()
    {
        return location.x ;
    }

    public int getY()
    {
        return location.y ;
    }

    public Point getLocation()
    {
        return location ;
    }

    //set methods
    public void setY(int y)
    {
        location.y = y ;
    }

    public void setX(int x)
    {
        location.x = x ;
    }

    public void setLocation(int x, int y)
    {
        location.x = x ;
        location.y = y ;
    }

    public void setType(Type newType)
    {
        type = newType ;
    }

}
